<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
    <style>
      p {
        line-height: 1.7;
        font-size: 16px;
        color: lightblue;
      }
    </style>
  </head>
  <body>
    <p>这是一段文本</p>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script>
      console.log($('p').css('lineHeight')) // '27.2px'
      console.log($('p').css('color')) // 'rgb(173, 216, 230)'
    </script>
  </body>
</html>
